<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {
    //商品列表
    Route::post('Admin/login', 'Admin/login');
    //配置详情
    Route::post('AdminSetting/configInfo', 'AdminSetting/configInfo');
    //车费配置详情
    Route::get('AdminSetting/carConfigInfo', 'AdminSetting/carConfigInfo');
    //编辑车费配置
    Route::post('AdminSetting/carConfigUpdate', 'AdminSetting/carConfigUpdate');
    //配置修改
    Route::post('AdminSetting/configUpdate', 'AdminSetting/configUpdate');

    Route::post('AdminSetting/payConfigInfo', 'AdminSetting/payConfigInfo');

    Route::post('AdminSetting/payConfigUpdate', 'AdminSetting/payConfigUpdate');
    //banne列表
    Route::post('AdminSetting/bannerList', 'AdminSetting/bannerList');
    //banner添加
    Route::post('AdminSetting/bannerAdd', 'AdminSetting/bannerAdd');
    //banner编辑
    Route::post('AdminSetting/bannerUpdate', 'AdminSetting/bannerUpdate');
    //banner详情（id）
    Route::get('AdminSetting/bannerInfo', 'AdminSetting/bannerInfo');
    //修改密码（pass）
    Route::post('AdminSetting/updatePass', 'AdminSetting/updatePass');
    //评价标签列表
    Route::get('AdminSetting/lableList', 'AdminSetting/lableList');
    //评价标签详情
    Route::get('AdminSetting/lableInfo', 'AdminSetting/lableInfo');
    //添加评价标签
    Route::post('AdminSetting/lableAdd', 'AdminSetting/lableAdd');
    //编辑评价标签
    Route::post('AdminSetting/lableUpdate', 'AdminSetting/lableUpdate');
    //技师列表
    Route::get('AdminCoach/coachList', 'AdminCoach/coachList');
    //技师详情
    Route::get('AdminCoach/coachInfo', 'AdminCoach/coachInfo');
    //技师审核(status2通过,3拒绝,sh_text)
    Route::post('AdminCoach/coachUpdate', 'AdminCoach/coachUpdate');
    //技师等级列表
    Route::get('AdminCoach/levelList', 'AdminCoach/levelList');
    //添加技师等级
    Route::post('AdminCoach/levelAdd', 'AdminCoach/levelAdd');
    //编辑技师等级
    Route::post('AdminCoach/levelUpdate', 'AdminCoach/levelUpdate');
    //技师等级详情
    Route::get('AdminCoach/levelInfo', 'AdminCoach/levelInfo');
    //技师提现申请列表(type1是服务费提现，2是车费)
    Route::get('AdminCoach/walletList', 'AdminCoach/walletList');
    //提现详情
    Route::get('AdminCoach/walletInfo', 'AdminCoach/walletInfo');
    //通过提现(online:1线上，0线下)
    Route::post('AdminCoach/walletPass', 'AdminCoach/walletPass');
    //拒绝提现
    Route::post('AdminCoach/walletNoPass', 'AdminCoach/walletNoPass');
    //报警列表
    Route::get('AdminCoach/policeList', 'AdminCoach/policeList');
    //编辑报警
    Route::post('AdminCoach/policeUpdate', 'AdminCoach/policeUpdate');



    //后台提现列表
    Route::get('AdminCoach/walletList', 'AdminCoach/walletList');
    //同意打款（id,status=2,online 1：线上，0线下）
    Route::post('AdminCoach/walletPass', 'AdminCoach/walletPass');
    //拒绝打款（id,status=3）
    Route::post('AdminCoach/walletNoPass', 'AdminCoach/walletNoPass');
    //财务管理
    Route::get('AdminCoach/financeList', 'AdminCoach/financeList');
    //商品列表
    Route::get('AdminGoods/goodsList', 'AdminGoods/goodsList');
    //审核商品数量
    Route::get('AdminGoods/goodsCount', 'AdminGoods/goodsCount');
    //审核详情
    Route::get('AdminGoods/shInfo', 'AdminGoods/shInfo');
    //审核商品详情
    Route::get('AdminGoods/shGoodsInfo', 'AdminGoods/shGoodsInfo');
    //同意|驳回申请 status 2 同意 3驳回
    Route::post('AdminGoods/shUpdate', 'AdminGoods/shUpdate');
    //用户列表
    Route::get('AdminUser/userList', 'AdminUser/userList');
    //退款列表
    Route::get('AdminOrder/refundOrderList', 'AdminOrder/refundOrderList');
    //订单列表
    Route::get('AdminOrder/orderList', 'AdminOrder/orderList');
    //订单详情
    Route::get('AdminOrder/orderInfo', 'AdminOrder/orderInfo');
    //退款详情
    Route::get('AdminOrder/refundOrderInfo', 'AdminOrder/refundOrderInfo');
    //后台打印订单（id，type 1赛车 2商城 3餐饮）
    Route::post('AdminOrder/orderPrinter', 'AdminOrder/orderPrinter');
    //拒绝退款
    Route::post('AdminOrder/noPassRefund', 'AdminOrder/noPassRefund');
    //同意退款
    Route::post('AdminOrder/passRefund', 'AdminOrder/passRefund');
    //订单评价列表
    Route::get('AdminOrder/commentList', 'AdminOrder/commentList');
    //编辑订单评价
    Route::post('AdminOrder/commentUpdate', 'AdminOrder/commentUpdate');
    //评价标签列表
    Route::get('AdminOrder/commentLableList', 'AdminOrder/commentLableList');
    //评价标签详情
    Route::get('AdminOrder/commentLableInfo', 'AdminOrder/commentLableInfo');
    //添加评价标签
    Route::post('AdminOrder/commentLableAdd', 'AdminOrder/commentLableAdd');
    //编辑评价标签
    Route::post('AdminOrder/commentLableUpdate', 'AdminOrder/commentLableUpdate');
    //提示列表(type,have_look,start_time,end_time)
    Route::get('AdminOrder/noticeList', 'AdminOrder/noticeList');
    //编辑提示()
    Route::post('AdminOrder/noticeUpdate', 'AdminOrder/noticeUpdate');
    //未查看的数量
    Route::post('AdminOrder/noLookCount', 'AdminOrder/noLookCount');
    //后台统计 date 交易情况时间 type 1 2 3订单流水 start_time end_time
    Route::post('AdminOrder/dataStatistics', 'AdminOrder/dataStatistics');
    //全部已读
    Route::post('AdminOrder/allLook', 'AdminOrder/allLook');
    //订单导出
    Route::get('AdminExcel/orderList', 'AdminExcel/orderList');
    //财务导出
    Route::get('AdminExcel/dateCount', 'AdminExcel/dateCount');
    //打印机详情(id)
    Route::get('AdminPrinter/printerInfo', 'AdminPrinter/printerInfo');
    //编辑打印机
    Route::post('AdminPrinter/printerUpdate', 'AdminPrinter/printerUpdate');
    //打印机列表
    Route::get('AdminPrinter/printerList', 'AdminPrinter/printerList');
    //打印机添加
    Route::post('AdminPrinter/printerAdd', 'AdminPrinter/printerAdd');
    //佣金记录
    Route::post('AdminUser/commList', 'AdminUser/commList');

    Route::post('AdminUser/userUpdate', 'AdminUser/userUpdate');

    Route::post('AdminUser/userIntegralUpdate', 'AdminUser/userIntegralUpdate');



    /////////////////////
    //车手列表
    Route::get('AdminDriver/driverList', 'AdminDriver/driverList');
    //车手详情
    Route::get('AdminDriver/driverInfo', 'AdminDriver/driverInfo');
    //车手审核(2通过,3取消,4拒绝)
    Route::post('AdminDriver/driverUpdate', 'AdminDriver/driverUpdate');
    //奖杯列表
    Route::get('AdminDriver/trophyList', 'AdminDriver/trophyList');
    //添加奖杯
    Route::post('AdminDriver/trophyAdd', 'AdminDriver/trophyAdd');
    //编辑奖杯
    Route::post('AdminDriver/trophyUpdate', 'AdminDriver/trophyUpdate');
    //奖杯详情
    Route::get('AdminDriver/trophyInfo', 'AdminDriver/trophyInfo');

    Route::get('AdminUser/userTrophy', 'AdminUser/userTrophy');
    //user_id  trophy_id add
    Route::post('AdminUser/userTrophyAdd', 'AdminUser/userTrophyAdd');
    //奖杯下拉框
    Route::get('AdminDriver/trophySelect', 'AdminDriver/trophySelect');

    //车型列表
    Route::get('AdminDriver/cartypeList', 'AdminDriver/cartypeList');
    //添加车型
    Route::post('AdminDriver/cartypeAdd', 'AdminDriver/cartypeAdd');
    //编辑车型
    Route::post('AdminDriver/cartypeUpdate', 'AdminDriver/cartypeUpdate');
    //车型详情
    Route::get('AdminDriver/cartypeInfo', 'AdminDriver/cartypeInfo');
    //车型下拉框
    Route::get('AdminDriver/cartypeSelect', 'AdminDriver/cartypeSelect');


    //产品列表(搜索：name)
    Route::get('AdminService/serviceList', 'AdminService/serviceList');
    //产品详情
    Route::get('AdminService/serviceInfo', 'AdminService/serviceInfo');
    //产品添加
    Route::post('AdminService/serviceAdd', 'AdminService/serviceAdd');
    //编辑产品|上下架删除
    Route::post('AdminService/serviceUpdate', 'AdminService/serviceUpdate');


    //优惠券列表(搜索：name)
    Route::get('AdminCoupon/couponList', 'AdminCoupon/couponList');
    //优惠券详情（id）
    Route::get('AdminCoupon/couponInfo', 'AdminCoupon/couponInfo');
    //添加优惠券
    Route::post('AdminCoupon/couponAdd', 'AdminCoupon/couponAdd');
    //编辑优惠券
    Route::post('AdminCoupon/couponUpdate', 'AdminCoupon/couponUpdate');
    //活动详情
    Route::get('AdminCoupon/couponAtvInfo', 'AdminCoupon/couponAtvInfo');
    //编辑活动
    Route::post('AdminCoupon/couponAtvUpdate', 'AdminCoupon/couponAtvUpdate');
    //后台派发卡券(coupon_id,user_id)
    Route::post('AdminCoupon/couponRecordAdd', 'AdminCoupon/couponRecordAdd');




    //储值充值卡列表
    Route::get('AdminBalance/cardList', 'AdminBalance/cardList');
    //储值充值卡列表
    Route::post('AdminBalance/cardAdd', 'AdminBalance/cardAdd');
    //编辑充值卡
    Route::post('AdminBalance/cardUpdate', 'AdminBalance/cardUpdate');
    //充值卡详情
    Route::get('AdminBalance/cardInfo', 'AdminBalance/cardInfo');
    //储值订单列表
    Route::get('AdminBalance/orderList', 'AdminBalance/orderList');
    //充值订单详情
    Route::get('AdminBalance/orderInfo', 'AdminBalance/orderInfo');

    Route::get('AdminBalance/orderInfo', 'AdminBalance/orderInfo');


    //文章列表（title）
    Route::get('AdminSetting/articleList', 'AdminSetting/articleList');
    //添加文章
    Route::post('AdminSetting/articleAdd', 'AdminSetting/articleAdd');
    //编辑文章
    Route::post('AdminSetting/articleUpdate', 'AdminSetting/articleUpdate');
    //文章详情（id）
    Route::get('AdminSetting/articleInfo', 'AdminSetting/articleInfo');
    //文章下拉框
    Route::get('AdminSetting/articleSelect', 'AdminSetting/articleSelect');


    //活动内容列表
    Route::get('AdminAtv/contentList', 'AdminAtv/contentList');
    //活动内容下拉框
    Route::get('AdminAtv/contentSelect', 'AdminAtv/contentSelect');
    //活动内容详情
    Route::get('AdminAtv/contentInfo', 'AdminAtv/contentInfo');
    //活动内容添加
    Route::post('AdminAtv/contentAdd', 'AdminAtv/contentAdd');
    //活动内容编辑
    Route::post('AdminAtv/contentUpdate', 'AdminAtv/contentUpdate');
    //活动列表
    Route::get('AdminAtv/atvList', 'AdminAtv/atvList');
    //活动详情
    Route::get('AdminAtv/atvInfo', 'AdminAtv/atvInfo');
    //添加活动
    Route::post('AdminAtv/atvAdd', 'AdminAtv/atvAdd');
    //编辑活动
    Route::post('AdminAtv/atvUpdate', 'AdminAtv/atvUpdate');
    //活动列表
    Route::get('AdminAtv/recordList', 'AdminAtv/recordList');
    //活动详情
    Route::get('AdminAtv/recordInfo', 'AdminAtv/recordInfo');

    Route::post('AdminAtv/recordUpdate', 'AdminAtv/recordUpdate');
    //比赛情况列表（name,major 1普通，2专业）
    Route::get('AdminAtv/gameList', 'AdminAtv/gameList');

    Route::any('Tcp/test', 'Tcp/test');

    Route::get('Tcp/test1', 'Tcp/test1');

    Route::any('Tcp/getInfo', 'Tcp/getInfo');

    Route::any('Tcp/gameList', 'Tcp/gameList');


});



//商城后端路由表
Route::group('app', function () {
    //首页
    Route::get('Index/index', 'Index/index');
    //比赛成绩排行版 type 1普通组 2专业组
    Route::get('Index/resultTopList', 'Index/resultTopList');
    //赛事积分排行版（atv_id）
    Route::get('Index/integralRecordList', 'Index/integralRecordList');

    Route::get('Index/successAtvList', 'Index/successAtvList');

    Route::get('Index/atvInfo', 'Index/atvInfo');

    Route::post('Index/appAtv', 'Index/appAtv');

    Route::get('Index/coachInfo', 'Index/coachInfo');

    Route::get('Index/articleList', 'Index/articleList');

    Route::get('Index/articleInfo', 'Index/articleInfo');
    //再来一单(order_id)
    Route::post('Index/onceMoreOrder', 'Index/onceMoreOrder');
    //评价列表(coach_id)
    Route::get('Index/commentList', 'Index/commentList');
    //服务列表(sort:price 价格排序 ，total_sale销量排序 star评价排序 ,)
    Route::get('Index/serviceList', 'Index/serviceList');
    //服务详情(id)
    Route::get('Index/serviceInfo', 'Index/serviceInfo');
    //服务技师列表(ser_id，服务id,lat,lng)
    Route::get('Index/serviceCoachList', 'Index/serviceCoachList');
    //技师服务列表(coach_id)
    Route::get('Index/coachServiceList', 'Index/coachServiceList');
    //报名记录重新支付 record_id
    Route::post('Index/atvRecordRePay', 'Index/atvRecordRePay');
    //取消预约（record_id）
    Route::post('IndexUser/cancelAtvRecord', 'IndexUser/cancelAtvRecord');
    //活动预约二维码
    Route::post('IndexUser/atvRecordQr', 'IndexUser/atvRecordQr');
    //核销报名（record_id,card_id）
    Route::post('IndexUser/hxAtvRecord', 'IndexUser/hxAtvRecord');

    Route::post('IndexUser/applyReseller', 'IndexUser/applyReseller');




    //用户授权
    Route::post('IndexUser/userUpdate', 'IndexUser/userUpdate');
    //phone
    Route::get('IndexUser/popalMemberByPhone', 'IndexUser/popalMemberByPhone');
    //绑定会员uid
    Route::post('IndexUser/bindMember', 'IndexUser/bindMember');
    //同步积分余额
    Route::post('IndexUser/synMemberCash', 'IndexUser/synMemberCash');
    //申请技师
    Route::post('IndexUser/coachApply', 'IndexUser/coachApply');
    //教练收藏列表
    Route::get('IndexUser/coachCollectList', 'IndexUser/coachCollectList');
    //添加技师收藏(coach_id)
    Route::post('IndexUser/addCollect', 'IndexUser/addCollect');
    //删除技师收藏(coach_id)
    Route::post('IndexUser/delCollect', 'IndexUser/delCollect');

    Route::get('IndexUser/userInfo', 'IndexUser/userInfo');

    Route::post('IndexUser/reportPhone', 'IndexUser/reportPhone');
    //优惠券活动详情
    Route::post('IndexUser/couponAtvInfo', 'IndexUser/couponAtvInfo');
    //用户|团长个人中心
    Route::get('IndexUser/index', 'IndexUser/index');
    //个人团长信息
    Route::get('IndexUser/coachInfo', 'IndexUser/coachInfo');
    //用户地址列表
    Route::get('IndexUser/addressList', 'IndexUser/addressList');
    //地址详情
    Route::get('IndexUser/addressInfo', 'IndexUser/addressInfo');
    //添加地址
    Route::post('IndexUser/addressAdd', 'IndexUser/addressAdd');
    //编辑地址
    Route::post('IndexUser/addressUpdate', 'IndexUser/addressUpdate');
    //删除地址
    Route::post('IndexUser/addressDel', 'IndexUser/addressDel');
    //获取默认地址
    Route::get('IndexUser/getDefultAddress', 'IndexUser/getDefultAddress');
    //活动二维码
    Route::post('IndexUser/atvQr', 'IndexUser/atvQr');
    //用户优惠券列表（status1，2，3）
    Route::get('IndexUser/userCouponList', 'IndexUser/userCouponList');
    //删除优惠券（coupon_id）
    Route::post('IndexUser/couponDel', 'IndexUser/couponDel');
    //获取配置信息
    Route::get('Index/configInfo', 'Index/configInfo');
    //技师首页
    Route::get('IndexCoach/coachIndex', 'IndexCoach/coachIndex');
    //技师编辑
    Route::post('IndexCoach/coachUpdate', 'IndexCoach/coachUpdate');
    //团长核销订单（id）
    Route::post('IndexCoach/hxOrder', 'IndexCoach/hxOrder');
    //订单列表
    Route::get('IndexCoach/orderList', 'IndexCoach/orderList');
    //团长佣金信息
    Route::get('IndexCoach/capCashInfo', 'IndexCoach/capCashInfo');
    //团长佣金信息(车费)
    Route::get('IndexCoach/capCashInfoCar', 'IndexCoach/capCashInfoCar');
    //提现记录
    Route::get('IndexCoach/capCashList', 'IndexCoach/capCashList');
    //申请提现(apply_price,text,type：1服务费提现，2车费提现)
    Route::post('IndexCoach/applyWallet', 'IndexCoach/applyWallet');
    //报警

    Route::post('IndexCoach/police', 'IndexCoach/police');
    //技师修改订单信息(type,order_id)
    Route::post('IndexCoach/updateOrder', 'IndexCoach/updateOrder');




    Route::get('IndexGoods/indexCapList', 'IndexGoods/indexCapList');
    //选择楼长(cap_id)
    Route::post('IndexGoods/selectCap', 'IndexGoods/selectCap');
    //分类列表
    Route::get('IndexGoods/cateList', 'IndexGoods/cateList');
    //商品首页信息
    Route::get('IndexGoods/index', 'IndexGoods/index');

    //商品列表
    Route::get('IndexGoods/goodsList', 'IndexGoods/goodsList');
    //商品详情
    Route::get('IndexGoods/goodsInfo', 'IndexGoods/goodsInfo');

    //购物车信息（coach_id）
    Route::get('Index/carInfo', 'Index/carInfo');
    //添加购物车（service_id,coach_id,num = 1）
    Route::post('Index/addCar', 'Index/addCar');
    //删除购物车|减少购物车商品数量（id,num=1）
    Route::post('Index/delCar', 'Index/delCar');
    //批量删除购物车（coach）
    Route::post('Index/delSomeCar', 'Index/delSomeCar');
    //修改购物车（ID ：arr）
    Route::post('Index/carUpdate', 'Index/carUpdate');
    //
    Route::post('IndexOrder/payOrder', 'IndexOrder/payOrder');
    //下单的那个页面(coach_id，有优惠券就传 coupon_id)
    Route::get('IndexOrder/payOrderInfo', 'IndexOrder/payOrderInfo');
    //用户订单列表（pay_type,name）
    Route::get('IndexOrder/orderList', 'IndexOrder/orderList');

    Route::post('IndexOrder/delOrder', 'IndexOrder/delOrder');
    //订单详情
    Route::get('IndexOrder/orderInfo', 'IndexOrder/orderInfo');
    //重新支付
    Route::post('IndexOrder/rePayOrder', 'IndexOrder/rePayOrder');
    //取消订单
    Route::post('IndexOrder/cancelOrder', 'IndexOrder/cancelOrder');
    //申请退款（order_id,list:['id','num']）
    Route::post('IndexOrder/applyOrder', 'IndexOrder/applyOrder');
    //取消退款
    Route::post('IndexOrder/cancelRefundOrder', 'IndexOrder/cancelRefundOrder');
    //用户端退款列表（name,status）
    Route::get('IndexOrder/refundOrderList', 'IndexOrder/refundOrderList');
    //退款详情
    Route::get('IndexOrder/refundOrderInfo', 'IndexOrder/refundOrderInfo');
    //刷新订单二维码(id)
    Route::post('IndexOrder/refreshQr', 'IndexOrder/refreshQr');
    //选中时间(coach_id,day)
    Route::get('IndexOrder/timeText', 'IndexOrder/timeText');

    Route::get('IndexOrder/dayText', 'IndexOrder/dayText');
    //添加评价(order_id,text，star)
    Route::post('IndexOrder/addComment', 'IndexOrder/addComment');

    Route::get('IndexOrder/lableList', 'IndexOrder/lableList');
    //可用的优惠券(coach_id)
    Route::get('IndexOrder/couponList', 'IndexOrder/couponList');
    //
    Route::post('IndexOrder/hxOrder', 'IndexOrder/hxOrder');

    //储值充值卡列表
    Route::get('IndexBalance/cardList', 'IndexBalance/cardList');
    //充值余额(card_id)
    Route::post('IndexBalance/payBalanceOrder', 'IndexBalance/payBalanceOrder');
    //充值订单列表(时间筛选 start_time,end_time)
    Route::get('IndexBalance/balaceOrder', 'IndexBalance/balaceOrder');
    //消费明细
    Route::get('IndexBalance/payWater', 'IndexBalance/payWater');
    //佣金列表 status 0,1,2
    Route::get('IndexUser/commList', 'IndexUser/commList');

    Route::post('IndexUser/carApply', 'IndexUser/carApply');

    Route::get('IndexUser/carInfo', 'IndexUser/carInfo');
    //报名列表
    Route::get('IndexUser/userAtvRecord', 'IndexUser/userAtvRecord');
    //报名情况详情（id）
    Route::get('IndexUser/recordInfo', 'IndexUser/recordInfo');
    //查询有成绩对日期
    Route::get('IndexUser/resultDate', 'IndexUser/resultDate');
    //根据日期获取比赛车型(day)
    Route::get('IndexUser/resultCarType', 'IndexUser/resultCarType');
    //个人成绩 (car_type_id ,day)
    Route::get('IndexUser/userResult', 'IndexUser/userResult');
    //我的排队信息
    Route::get('IndexUser/myLineUp', 'IndexUser/myLineUp');
    //签到 （type 1 订单 2报名，order_id 订单id 或者报名id）
    Route::post('IndexUser/signUp', 'IndexUser/signUp');
    //取消签到 （type 1 订单 2报名，order_id 订单id 或者报名id）
    Route::post('IndexUser/cancelSignUp', 'IndexUser/cancelSignUp');
    //id
    Route::post('IndexUser/payCancelRecord', 'IndexUser/payCancelRecord');





});


//支付
Route::any('IndexWxPay/returnPay', 'IndexWxPay/returnPay');



















